package org.argetr.resim.proc.data;


public class KernelDA extends Data {
	   protected int _nCol;
	   protected int _nRow;
	   protected float [][] _kernel;
	   public KernelDA(float[][] kernel){
		   _nCol = kernel[0].length;
		   _nRow = kernel.length;
		   _kernel = kernel;
		   setDataType(Data.KERNEL);
	   }
	   public int getNCol(){
		   return _nCol;
	   }
	   public int getNRow(){
		   return _nRow;
	   }
	   public float [][] getKernel(){
		   return _kernel;
	   }
	   public float getValue(int rowIndex, int colIndex){
		   return _kernel[rowIndex][colIndex];
	   }
	   public void setValue(int rowIndex,int colIndex,float value){
		   _kernel[rowIndex][colIndex] = value;
	   }
}
